<template>
  <div class="loginhead">
    <van-icon name="arrow-left" class="icon" @click="$router.go(-1)" />
    <slot></slot>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.loginhead {
  position: fixed;
  top: 0;
  width: 100%;
  height: 88px;
  text-align: center;
  line-height: 88px;
  padding: 0 20px;
  font-size: 34px;
  background-color: #f7f7f7;
  box-sizing: border-box;
  z-index: 99;
  .icon {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 50px;
    font-weight: bold;
  }
}
</style>